package com.gx.server.model.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.gx.server.model.enums.MembershipLevel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author Dobby
 * @version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    private String username;
    private String password;
    private String email;
    private String code;
    private MembershipLevel membershipLevel;
    private String Phone;
    private String userAccount;
    private int isActive;

    @TableField(fill = FieldFill.INSERT_UPDATE) //插入时填充字段
    private LocalDateTime createTime;
    private LocalDateTime lastLogin;
}
